package com.itheima.wms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.wms.common.service.ICrudService;
import com.itheima.wms.dto.IncreaseDecreaseDTO;
import com.itheima.wms.entity.IncreaseDecreaseEntity;
import com.itheima.wms.vo.IncreaseDecreaseDetailVO;
import com.itheima.wms.vo.IncreaseDecreaseSumVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 业务接口
 * 损益单
 * </p>
 */
public interface IncreaseDecreaseService extends ICrudService<IncreaseDecreaseEntity> {

    IPage<IncreaseDecreaseDetailVO> pageDetail(Page<IncreaseDecreaseDetailVO> page, Map data);

    List<IncreaseDecreaseDetailVO> listDetail(Map data);

    void change(IncreaseDecreaseDTO data);

    void cancel(IncreaseDecreaseDTO data);

    IncreaseDecreaseSumVO sum(Map data);
}
